package lex;

import java.util.List;

public class Printer // for printing the output as a table , now it only prints the tokens line by line...
{
	private String text;
	private List<Token> tok_list;
	
	public Printer(String text, List<Token> tok_list)
	{
		this.text = text;
		this.tok_list = tok_list;
	}

	public void print() {
		
		for(Token tok : tok_list){
			System.out.println("(" + tok.tag +"," +   tok.value+ ")");
		}
		
	}
	

	
}